package com.isman.placeslist;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;

public class PagePlaceList extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.page_place_list);
		
		vGridList = (GridView)findViewById(R.id.gvw_pl_list);
		vGridList.setAdapter(new ItemAdapter());
	}
	
	public class ItemAdapter extends BaseAdapter{
		LayoutInflater inflater;
		public ItemAdapter(){
			inflater = LayoutInflater.from(PagePlaceList.this);
		}
		@Override
		public int getCount() {
			// TODO Auto-generated method stub
			return 10;
		}

		@Override
		public Object getItem(int arg0) {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public long getItemId(int arg0) {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public View getView(int arg0, View arg1, ViewGroup arg2) {
			// TODO Auto-generated method stub
			return inflater.inflate(R.layout.inc_item_place_item_small, null);
		}
		
	}
 
	private GridView vGridList;
}
